package com.ruoyi.analysis.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.analysis.mapper.ProductAnalysisSummaryMapper;
import com.ruoyi.analysis.domain.ProductAnalysisSummary;
import com.ruoyi.analysis.service.IProductAnalysisSummaryService;
import com.ruoyi.common.core.text.Convert;

/**
 * 焊接数据汇总Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-02-12
 */
@Service
public class ProductAnalysisSummaryServiceImpl implements IProductAnalysisSummaryService 
{
    @Autowired
    private ProductAnalysisSummaryMapper productAnalysisSummaryMapper;

    /**
     * 查询焊接数据汇总
     * 
     * @param id 焊接数据汇总主键
     * @return 焊接数据汇总
     */
    @Override
    public ProductAnalysisSummary selectProductAnalysisSummaryById(Long id)
    {
        return productAnalysisSummaryMapper.selectProductAnalysisSummaryById(id);
    }

    /**
     * 查询焊接数据汇总列表
     * 
     * @param productAnalysisSummary 焊接数据汇总
     * @return 焊接数据汇总
     */
    @Override
    public List<ProductAnalysisSummary> selectProductAnalysisSummaryList(ProductAnalysisSummary productAnalysisSummary)
    {
        return productAnalysisSummaryMapper.selectProductAnalysisSummaryList(productAnalysisSummary);
    }

    /**
     * 新增焊接数据汇总
     * 
     * @param productAnalysisSummary 焊接数据汇总
     * @return 结果
     */
    @Override
    public int insertProductAnalysisSummary(ProductAnalysisSummary productAnalysisSummary)
    {
        return productAnalysisSummaryMapper.insertProductAnalysisSummary(productAnalysisSummary);
    }

    /**
     * 修改焊接数据汇总
     * 
     * @param productAnalysisSummary 焊接数据汇总
     * @return 结果
     */
    @Override
    public int updateProductAnalysisSummary(ProductAnalysisSummary productAnalysisSummary)
    {
        return productAnalysisSummaryMapper.updateProductAnalysisSummary(productAnalysisSummary);
    }

    /**
     * 批量删除焊接数据汇总
     * 
     * @param ids 需要删除的焊接数据汇总主键
     * @return 结果
     */
    @Override
    public int deleteProductAnalysisSummaryByIds(String ids)
    {
        return productAnalysisSummaryMapper.deleteProductAnalysisSummaryByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除焊接数据汇总信息
     * 
     * @param id 焊接数据汇总主键
     * @return 结果
     */
    @Override
    public int deleteProductAnalysisSummaryById(Long id)
    {
        return productAnalysisSummaryMapper.deleteProductAnalysisSummaryById(id);
    }
}
